Ext.onReady(function(){
    Ext.QuickTips.init();
var types=new Ext.data.SimpleStore({
	fields:['type'],
	data:['Provider','Rider']})
    // turn on validation errors beside the field globally
    Ext.form.Field.prototype.msgTarget = 'side';

   // var bd = Ext.getBody();

    /*
     * ================  Simple form  =======================
     */
   // bd.createChild({tag: 'h2', html: 'Form 1 - Very Simple'});


    var simple = new Ext.FormPanel({
        labelWidth: 75, // label settings here cascade unless overridden
        url:'save-form.php',
        frame:true,
        title: 'SearchForm',
        bodyStyle:'padding:5px 5px 0',
        //defaults: {width: 130},
        defaultType: 'textfield',

        items: [{
        	    xtype:'textfield',
                fieldLabel: 'Source',
                name: 'source',
                allowBlank:false
            },{
            	xtype:'textfield',
                fieldLabel: 'Destination',
                name: 'destination',
               allowBlank:false
            }
        ],

        buttons:[{
            text: 'Search'}   
        ]
    });

    simple.render(searchbox);

})